package com.trade.module.daq.entity;

import com.trade.module.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Class Description: 数据导出实体类
 *
 * @Version v1.0 2017/6/17 12:17
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Entity
@Table(name = "daq_data_export")
public class DataExport extends BaseEntity implements Serializable{
    private static final long serialVersionUID = -7531240169870100999L;

    @Column(
            name = "file_intro",
            length = 128
    )
    private String fileIntro;   //文件简介

    @Column(
            name = "file_size",
            length = 5
    )
    private Long fileSize;    //文件大小

    @Column(
            name = "file_type",
            length = 6
    )
    private String fileType;    //文件类型  SQL,XML、TXT、CSV、EXCEL

    @Column(
            name = "source_table_id",
            length = 64
    )
    private String inSourceTableID;//数据源表ID

    @Column(
            name = "file_status",
            length = 4
    )
    private String fileStatus;  //文件状态（-1：已删除，1：未生成，2：生成中，3：已生成）

    @Column(name = "export_status",
            length = 4
    )
    private String exportStatus;  //导出状态（1：未开始，2：导出中，3：已完成导出）

    @Column(
            name = "file_path",
            length = 128
    )
    private String filePath;   //导出的文件存储路径

    @Column(
            name = "is_incre",
            length = 2
    )
    private String increament;  //是否增量

    @Column(name = "compress_file_path",
            length = 512
    )
    private String compressedFilePath; //压缩文件路径

    @Column(name = "apache_path",
            length = 512
    )
    private String apachePath;   //apache下的相对路径
}
